﻿@model DevelopmentKit.Cms.Domain.Content

@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Shared/_ContentMangerLayout.cshtml";
    var url = Url.Action("Summary");
    if (null != Model)
    {
        url = Url.Action("Details", new { id = Model.Id });
    }
    var current = Model;
    var htmlString = "";
}


 <h2 id="breadcrumbs" class="breadcrumbs">
  @while (null != current)
  {
      if (current == Model)
      { 
          htmlString = current.Title;
      }
      else
      {
          htmlString = Html.ActionLink(current.Title, "Details", new { id = current.Id }, new { target = "MainFrame" }) + "»" + htmlString;
      }
      current = current.Parent;
  }
     @(new HtmlString(htmlString))
</h2> 
<div id="main"> 
    <iframe name="MainFrame" id="MainFrame" width="100%" scrolling="no" height="800px" frameborder="0" src="@url"></iframe> 
</div>





